﻿using Prism.Ioc;
using Prism.Modularity;
using Prism.Regions;
using prismFramework_Modules.Views;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;


namespace prismFramework_Modules
{
    public class ModuleAModule : IModule
    {
        public void OnInitialized(IContainerProvider containerProvider)
        {
            var regionManager = containerProvider.Resolve<IRegionManager>();


           regionManager.RegisterViewWithRegion("ContentRegion", typeof(ViewA));
            regionManager.RegisterViewWithRegion("ContentRegion", typeof(ViewB));

        }

        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
            //containerRegistry.Register<ViewA>();

            //containerRegistry.RegisterForNavigation<ViewA>();

           // containerRegistry.RegisterScoped<ViewA>();

           // containerRegistry.RegisterSingleton<ViewA>();

        }


    }
    
}
